package com.hh.erp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hh.erp.entity.SysDictData;
import com.hh.erp.mapper.SysDictDataMapper;
import com.hh.erp.service.SysDictDataService;
import com.hh.erp.util.http.AjaxResult;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 字典数据表 服务实现类
 * </p>
 *
 * @author zhb
 * @since 2024-04-14
 */
@Service
public class SysDictDataServiceImpl extends ServiceImpl<SysDictDataMapper, SysDictData> implements SysDictDataService {

    @Override
    public List<SysDictData> getDictDatas(String dictType) {
        List<SysDictData> list = this.baseMapper.selectList(
                new QueryWrapper<SysDictData>()
                .eq(SysDictData.DICT_TYPE,dictType)
        );
        return list;
    }
}
